import { createStore } from "vuex";
import user from "./modules/user/index";
import common from "./modules/common/index";

import { getters } from "./getters";

export default createStore({
  mutations: {},
  actions: {},
  modules: {
    user,
    common,
  },
  getters,
});

export function useStore() {
  return createStore({
    mutations: {},
    actions: {},
    modules: {
      user,
      common,
    },
    getters,
  });
}